package com.terry.web.rest;

import com.terry.web.domain.dto.UserDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RequestMapping("/authorize")
@RestController
public class AuthorizeResource {



    @PostMapping("/register")
    public UserDto register(@Valid  @RequestBody UserDto userDto){
        return userDto;
    }



}
